/**
 * 
 */
package edu.pitt.cs.cs1635.g5;

public class Kinect {

	static public native int init();
	static public native void updateBodyInfo();
	static public native BodyInfo getBodyInfo();

	public static void main(String[] args) {
		Kinect.init();
		
		
		while(true){
			Kinect.updateBodyInfo();
			BodyInfo bi = Kinect.getBodyInfo();
			if (bi.bRHand)
				System.out.println(bi.pRHand.X + " " + bi.pRHand.Y + " " + bi.pRHand.Z);
		}
	}

	static {
		System.loadLibrary("Kinect");
	}
}
